//
//  amazonCall.h
//  amazon_test
//
//  Created by Pierre Guilbert on 7/27/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#define AWS_ID  @"AKIAISTOM6SEAONYPECA"
#define THUMB_URL @"http://ecx.images-amazon.com/images/P/"
#define THUMB_FORMAT @".01._SCLZZ_SS500.jpg"

@interface AmazonCall : NSWindowController {
	NSXMLDocument *doc; 
	NSArray *itemNodes;
	IBOutlet NSProgressIndicator *progress;
	IBOutlet NSTableView			*tableView;
	IBOutlet NSTextField			*titleTextField;
	NSString* search;

}
- (void)				openItem:(id)sender;
- (IBAction)			fetchDvds:(id)sender;
- (int)					numberOfRowsInTableView:(NSTableView*)tv;
- (id)					tableView:(NSTableView*)tv objectValueForTableColumn:(NSTableColumn*)tableColumn row:(int)row;
- (id)					init;
- (void)				setItemNode;
- (void)				dealloc;
@end
